<?php

Yii::import('zii.widgets.CPortlet');

class SideBarComments extends CPortlet
{
    public $lang = 'vi';

    protected function renderContent() {
        $comments = CreateCache::usingCache('Comment', false, '', '', 'id DESC', '', '', '', '', Limit_Comment_SideBar);

        $this->render('SideBarComments', array(
            'comments' => $comments
        ));
    }
}